package com.lcf.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lcf.system.entity.Movie;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电影(Movie)表数据库访问层
 *
 * @author lcf
 * @since 2025-05-07 22:23:21
 */
public interface MovieDao extends BaseMapper<Movie> {
    //查询用户关注电影类型top10
    List<String> getUserCollectMovieType(@Param("userId") long userId);

    //根据电影类型查询电影
    Page<Movie> getMovieByType(Page<Movie> page,
                               @Param("typeList") List<String> type);
}

